﻿Imports System.Configuration

Namespace Coding4Fun.PrinterDisplayHack
	Public Class PrinterHackSettings
		Inherits ApplicationSettingsBase

		Private Shared _PrinterHackSettings As PrinterHackSettings = (CType(Synchronized(New PrinterHackSettings()), PrinterHackSettings))

		Public Shared ReadOnly Property [Default]() As PrinterHackSettings
			Get
				Return _PrinterHackSettings
			End Get
		End Property


		<UserScopedSetting(), System.Diagnostics.DebuggerNonUserCodeAttribute(), DefaultSettingValue("")> _
		Public Property PrinterAddress() As String
			Get
				Return (CStr(Me("PrinterAddress")))
			End Get
			Set(ByVal value As String)
				Me("PrinterAddress") = value
			End Set
		End Property

		<UserScopedSetting(), System.Diagnostics.DebuggerNonUserCodeAttribute(), DefaultSettingValue("")> _
		Public Property StartWithWindows() As Boolean
			Get
				Return (CBool(Me("StartWithWindows")))
			End Get
			Set(ByVal value As Boolean)
				Me("StartWithWindows") = value
			End Set
		End Property

		<UserScopedSetting(), System.Diagnostics.DebuggerNonUserCodeAttribute(), DefaultSettingValue("")> _
		Public Property Enabled() As Boolean
			Get
				Return (CBool(Me("Enabled")))
			End Get
			Set(ByVal value As Boolean)
				Me("Enabled") = value
			End Set
		End Property

		<UserScopedSetting(), System.Diagnostics.DebuggerNonUserCodeAttribute(), DefaultSettingValue("")> _
		Public Property StockSymbol() As String
			Get
				Return (CStr(Me("StockSymbol")))
			End Get
			Set(ByVal value As String)
				Me("StockSymbol") = value
			End Set
		End Property
	End Class
End Namespace
